package com.ksxy.demo.chinasvgview;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.widget.Toast;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        MapView mapView = findViewById(R.id.mapView);
        mapView.setOnProvcieClickListener(new MapView.OnProviceClickListener() {
            @Override
            public void onClick(ProviceItem provice) {
                Toast.makeText(MainActivity.this, "你点击了"+provice.getName()+"省", Toast.LENGTH_SHORT).show();
            }
        });
    }
}
